﻿using ExcelUtil.ExcelAttribute;
using System.ComponentModel.DataAnnotations;

namespace WebApi8.Models
{
    public class WeatherForecast
    {
        [ExcelExport("日期")]
        [ExcelImport("日期")]
        public DateOnly Date { get; set; }
        [ExcelExport("温度")]
        [ExcelImport("温度")]
        public int TemperatureC { get; set; }
        [ExcelExport("天气")]
        [ExcelImport("天气")]
        public string? Summary { get; set; }

        /// <summary>
        /// 性别
        /// 0：男
        /// 1：女
        /// 2：第三性别
        /// </summary> 
        [ExcelExport("性别", "0:男,1:女,2:第三性别")]
        [ExcelImport("性别", "男:0,女:1,第三性别:2")]
        public int Sex { get; set; }
    }
}
